package cn.code.mycloud.module.envir.controller.admin.grid.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 网格新增/修改 Request VO")
@Data
public class GridSaveReqVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "29153")
    private Long id;

    @Schema(description = "网格名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "")
    @NotEmpty(message = "网格名称不能为空")
    private String name;

    @Schema(description = "省份ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "31219")
    @NotNull(message = "省份ID不能为空")
    private Long provinceId;

    @Schema(description = "省份", example = "张三")
    private String provinceName;

    @Schema(description = "城市ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28177")
    @NotNull(message = "城市ID不能为空")
    private Long cityId;

    @Schema(description = "城市", example = "赵六")
    private String cityName;

}